<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="https://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>商品收藏 - Powered By ${systemConfig.systemName}</title>  <link rel="icon" href="/template/pc1/images/wmh_favicon.ico" type="image/x-icon" />
<meta name="Author" content="E-SHOP Team" />
<meta name="Copyright" content="E-SHOP" />
<link rel="icon" href="/template/pc1/images/wmh_favicon.ico" type="image/x-icon" />
<% include("../include.html"){}%>
<link href="${base}/template/pc1/css/login.css" rel="stylesheet" type="text/css" />
<link href="${base}/template/pc1/css/register.css" rel="stylesheet" type="text/css" />
<link href="${base}/template/pc1/css/member_center.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${base}/template/pc1/js/login.js"></script>
<script type="text/javascript" src="${base}/template/pc1/js/register.js"></script>
<script type="text/javascript">
$().ready( function() {
	
	// 删除
	$(".deleteFavorite").click( function() {
		if (confirm("您确定要删除吗？") == false) {
			return false;
		}
	});
	
});
</script>
</head>
<body class="memberCenter">
	<%include("../header_customer.html"){}%>
	<div class="body favoriteList">
		<div class="bodyLeft">
			<div class="memberInfo">
				<div class="top"></div>
				<div class="middle">
					<p>欢迎您！<span class="username">${loginMember.username}</span> [<a class="userLogout" href="${base}/b/customerCenter/logout">退出</a>]</p>
					<p>会员等级:<span class="red"> ${loginMember.memberRank.name}</span></p>
				</div>
				<div class="bottom"></div>
			</div>
			<div class="blank"></div>
			<!-- 侧边栏 -->
			<%include("../sidebar_customer.html"){}%>
		</div>
		<div class="bodyRight">
			<div class="memberCenterDetail">
				<div class="top">
					商品收藏
				</div>
				<div class="middle">
					<div class="blank"></div>
					<table class="listTable">
						<tr>
							<th>商品图片</th>
							<th>商品名称</th>
							<th>商品价格</th>
							<th>操作</th>
						</tr>
						<%for(list in pager.list){%>
							<tr>
								<td>
									<a href="${base}${list.htmlFilePath}" class="productImage" target="_blank">
										<img src="${base}${list.productImageList[0].bigProductImagePath!systemConfig.defaultThumbnailProductImagePath}" alt="${list.name}" />
									</a>
								</td>
								<td>
									<a href="${base}${list.htmlFilePath}" target="_blank">${list.name}</a>
								</td>
								<td>${list.price}</td>
								<td>
									<a href="${base}/b/favorite/delete?id=${list.id}" class="deleteFavorite">删除</a>
								</td>
							</tr>
						<%}%>
					</table>
					<div class="blank"></div>
         			<link href="${base}/template/pc1/css/pager.css" rel="stylesheet" type="text/css" />
         			<%include("../pager.html", {"pageNumber":pager.pageNumber,"pageSize":pager.pageSize,"pageCount":pager.totalPage,"property":"","keyword":"无","orderBy":"","orderType":"","baseUrl":"/shop/order/list"}) {}%>
				</div>
				<div class="bottom"></div>
			</div>
		</div>
		<div class="blank"></div>
		<%include("../friend_link.html"){}%>
	</div>
	<div class="blank"></div>
	<%include("../footer.html"){}%>
</body>
</html>